home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 February: Technology Seed / Mac Tech Seed Feb '97.toast / OpenDoc 1.2b2c1 / Implementation / Dialogs / DlgCmmn.r < prev    next >
Encoding:
Text File  |  1997-02-13  |  4.6 KB  |  167 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        DlgCmmn.r
  3.  
  4.     Contains:    Common resources needed by all dialogs (eg. appleguide support)
  5.  
  6.     Owned by:    Eric House
  7.  
  8.     Copyright:    © 1996 - 1997 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     Change History (most recent first):
  11.  
  12.          <6>     1/10/97    eeh        1614706: change values in int# resource.
  13.          <5>     9/18/96    TJ        1384389 Remove RSRC names in Non-Debug
  14.                                     Builds.
  15.          <4>     9/13/96    TJ        Fixed the name of the OpenDoc Guide file.
  16.          <3>     9/12/96    eeh        1386008: weak link against appleguidelib
  17.          <2>     9/10/96    eeh        1386008: AppleGuide support (incomplete)
  18.          <0>     6/7/96    eeh        first checked in
  19.  
  20.     To Do:
  21.     In Progress:
  22. */
  23.  
  24. #define SystemSevenOrBetter 1            // we want the extended types
  25. #define    SystemSevenOrLater    1            // Types.r uses this variable
  26.  
  27. #define oldTemp        //$$$$$ Needed to use old-style 'dctb' resource
  28. #include "Types.r"
  29. #undef oldTemp        //$$$$$ End of 'dctb' fix
  30.  
  31. #include "SysTypes.r"
  32.  
  33. #include "InfoDefs.h"
  34. #include "DdgDefs.h"
  35.  
  36.  
  37. data 'CDEF' (kAGButtonCDEFId,
  38. #If ODDebug
  39. "AGButton",
  40. #endif
  41. preLoad, locked) {
  42.     /* need to fill in destination address before using this stub */
  43.     $"41FA 0006"    /*LEA PC+8, A0        ;A0 <- ptr to destination address */
  44.     $"2050"            /*MOVEA.L (A0), A0    ;A0 <- destination address */
  45.     $"4ED0"            /*JMP (A0)            ;jump to destination address */
  46.     $"00000000"        /*destination address*/
  47. };
  48.  
  49. resource 'CNTL' (kAppleGuideButton
  50. #If ODDebug
  51. ,"Help Button"
  52. #endif
  53. ) {
  54.     {0, 0, 16, 16},
  55.     0,
  56.     visible,
  57.     0,
  58.     0,
  59.     176, /*(kAGButtonCDEFId << 4) + pushButProc,        /* is in TCP/IP */
  60.     kQuestionMarkicsID,
  61.     ""
  62. };
  63.  
  64. //    (kAGButtonCDEFId * 16) + pushButProc,        /* is in TCP/IP */
  65.  
  66. resource 'ics#' (kQuestionMarkicsID) {
  67.     {    /* array: 2 elements */
  68.         /* [1] */
  69.         $"3FF8 47C4 8CE2 9C72 88E2 80C2 8182 8102"
  70.         $"8102 8002 8382 87C2 87C2 4384 3FF8",
  71.         /* [2] */
  72.         $"3FF8 7FFC FFFE FFFE FFFE FFFE FFFE FFFE"
  73.         $"FFFE FFFE FFFE FFFE FFFE 7FFC 3FF8"
  74.     }
  75. };
  76.  
  77. resource 'ics4' (kQuestionMarkicsID) {
  78.     $"00CC CCCC CCCC C000 0CC0 CAAF AAC0 CC00"
  79.     $"CC0C FC1C FFFC 0CA0 CC1F FA00 FFFF 1CA0"
  80.     $"CC1D FD01 AFFF 1CA0 CC10 C00C FFFC 1CA0"
  81.     $"CC11 00CD FAC1 1CA0 CC01 10DF DC11 0CA0"
  82.     $"CCC0 11DA C110 CCA0 CCCC 01CD C10C CCA0"
  83.     $"DCCC CAAF AACC CDA0 DDCC CCC0 CCCC DDA0"
  84.     $"DDDD CAAF AACD DDA0 0DDD DCAF ACDD DA00"
  85.     $"00AA AAAA AAAA A0"
  86. };
  87.  
  88. resource 'ics8' (kQuestionMarkicsID) {
  89.     $"0000 2B2B 2B2B 2B2B 2B2B 2B2B 2B00 0000"
  90.     $"002B 2B00 2B89 FDFF FD89 2B00 2B2B 0000"
  91.     $"2B2B 002B FF2B 052B FFFF FF2B 002B 8900"
  92.     $"2B2B 05FF FFFD 0000 FFFF FFFF 052B 8900"
  93.     $"2B2B 05F9 FFF9 0005 FDFF FFFF 052B 8900"
  94.     $"2B2B 0500 2B00 002B FFFF FF2B 052B 8900"
  95.     $"2B2B 0505 0000 2BF9 FFFD 2B05 052B 8900"
  96.     $"2B2B 0005 0500 F9FF F92B 0505 002B 8900"
  97.     $"2B2B 2B00 0505 F9FD 2B05 0500 2B2B 8900"
  98.     $"2B2B 2B2B 0005 2BF9 2B05 002B 2B2B 8900"
  99.     $"F92B 2B2B 2B89 FDFF FD89 2B2B 2BF9 8900"
  100.     $"F9F9 2B2B 2B2B 2B00 2B2B 2B2B F9F9 8900"
  101.     $"F9F9 F9F9 2B89 FDFF FD89 2BF9 F9F9 8900"
  102.     $"00F9 F9F9 F92B FDFF FD2B F9F9 F989 0000"
  103.     $"0000 8989 8989 8989 8989 8989 89"
  104. };
  105.  
  106. /* the name of the folder in which OD guide file[s] is kept.
  107.  * Lives in a resource until such time as this folder becomes
  108.  * know to FindFolder via a constant.  First string is the
  109.  * folder name; any that follow are names of guide files
  110.  * OD expects to find there. */
  111. resource 'STR#' (kODShellGuideFilenameStrings, purgeable) {
  112.     {
  113.          "Global Guide Files"
  114.         ;"OpenDoc Guide"
  115.     }
  116. };
  117.  
  118. /* if we go with numbers here, should use a list of nums
  119.  rather than of strings */
  120. #if 1
  121.  
  122. data 'int#' (kODShellGuideSearchIndices,
  123. #if ODDebug
  124. "AG sequence indices",
  125. #endif
  126. purgeable) {
  127.     /* first short is a count; remainder are the elements of the array */
  128.         $"0008"        /* count; INCREMENT IF ADDING ELEMENTS! */
  129.         $"4650"        /* kODShellGuideStringIndexPartFrame */
  130.         $"4651"        /* kODShellGuideStringIndexDocument */
  131.         $"4652"        /* kODShellGuideStringIndexMainDraft */
  132.         $"4653"        /* kODShellGuideStringIndexDraftCreate */
  133.         $"4654"        /* kODShellGuideStringIndexPasteAs */
  134.         $"4655"        /* kODShellGuideStringIndexLinkSource */
  135.         $"4656"        /* kODShellGuideStringIndexLinkDest */
  136.         $"4657"        /* kODShellGuideStringIndexSize */
  137. };
  138.  
  139.  
  140. #else
  141. resource 'STR#' (kODShellGuideSearchStrings, purgeable) {
  142.     {
  143.         "2000"        /* kODShellGuideStringIndexPartFrame */
  144.         ;"2001"        /* kODShellGuideStringIndexDocument */
  145.         ;"2002"        /* kODShellGuideStringIndexMainDraft */
  146.         ;"2003"        /* kODShellGuideStringIndexDraftCreate */
  147.         ;"2004"        /* kODShellGuideStringIndexPasteAs */
  148.         ;"2005"        /* kODShellGuideStringIndexLinkSource */
  149.         ;"2006"        /* kODShellGuideStringIndexLinkDest */
  150.         ;"2007"        /* kODShellGuideStringIndexSize */
  151.  
  152. /*
  153.         "__PartInfoDlg"
  154.         ;"__DocInfoDlg"
  155.         ;"__DraftsMainDlg"
  156.         ;"__DraftsSaveDlg"
  157.         ;"__PasteAsDlg"
  158.         ;"__LinkSourceDlg"
  159.         ;"__LinkDestinationDlg"
  160.         ;"__SizeDlg"
  161. */
  162.     }
  163. };
  164. #endif
  165.  
  166.  
  167.